package cn.smart.epic.modular.system.warpper;

import cn.smart.epic.common.constant.factory.ConstantFactory;
import cn.smart.epic.common.warpper.BaseControllerWarpper;

import java.util.List;
import java.util.Map;

/**
 * @Auther Uncle_Z
 * @date 2017/9/14 20:25
 * @Email:2545375@qq.com
 * @Descrition
 * @since 1.0
 */

public class UserWarpper extends BaseControllerWarpper {

    public UserWarpper(List<Map<String,Object>> list){
        super(list);
    }

    @Override
    protected void warpTheMap(Map<String, Object> map) {
        map.put("sexName", ConstantFactory.me().getSexName((Integer)map.get("sex")));
        map.put("statusName",ConstantFactory.me().getStatusName((Integer) map.get("status")));
    }
}
